<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 错误信息控制器
 */
class Tempage extends MY_Controller {

    function __construct() {
        parent::__construct();
    }

    function detail($temp_view){

        if (is_file(APPPATH.'/views/tempage/'.$temp_view.'.html')){
            $temp_view = $temp_view ? 'tempage/'.$temp_view.'.html' : 'tempage/index.html';
            $this->display($temp_view);
        }else{
            $this->display('error/index.html');
        }
    }
}
